<?php

namespace app\common\validate;

use think\Validate;

class Cart extends Validate{
    protected $rule=[
        'userid'=>'require',
        'proid'=>'require',
        'nums'=>'require',
        'price'=>'require',
        'total'=>'require',
    ];

    protected $message=[
        'userid.require'=>'用户id信息未知',
        'proid.require'=>'商品id信息未知',
        'nums.require'=>'请选择商品数量',
        'price.require'=>'请输入商品单价',
        'total.require'=>'请输入商品总价',
    ];

    protected $scene=[];
}